package com.cy.observer;


import java.util.Observable;
import java.util.Observer;

public class ConcreteSubject extends Observable {
    private String sub_name;

    public ConcreteSubject(String sub_name) {
        super();
        this.sub_name = sub_name;
    }

    @Override
    public void notifyObservers(Object arg) {
        super.setChanged();
        super.notifyObservers(arg);
    }
}
